package com.itrip.service.impl;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.itrip.entity.ItripAreaDic;
import com.itrip.dao.ItripAreaDicMapper;
import com.itrip.service.ItripAreaDicService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Service
public class ItripAreaDicServiceImpl extends ServiceImpl<ItripAreaDicMapper, ItripAreaDic> implements ItripAreaDicService{

 private static final Logger LOGGER = LoggerFactory.getLogger(ItripAreaDicServiceImpl.class);


 @Override
 public List<ItripAreaDic> areaDicSelect(Map<String, Object> map) {
      ItripAreaDicMapper mapper=getBaseMapper();
      QueryWrapper<ItripAreaDic> qw= Wrappers.query();
      return mapper.selectByMap(map);
 }
    @Override
    public List<ItripAreaDic> chaxunjuedian(Long id) {
        ItripAreaDicMapper mapper=getBaseMapper();
        QueryWrapper<ItripAreaDic> qw= Wrappers.query();
        return mapper.getItripOrderLinkUserIdsByOrder(id);
    }
}
